package com.maker.generator.service;

import java.util.List;
import java.util.Map;

import com.dwork.base.pagination.Page;
import com.dwork.base.pagination.Pagination;
import com.maker.generator.entity.MetaGenAttr;
import com.maker.generator.entity.MetaGenDBInfo;
import com.maker.generator.entity.MetaGenObj;

public interface IGenService {
	public Pagination<MetaGenObj> queryMetaGenObjList(Page page, Map<String,Object> paramsMap);
	public Pagination<MetaGenAttr> queryMetaGenAttrList(Page page, Map<String,Object> paramMap);
	public Pagination<MetaGenDBInfo> queryMetaGenDBInfoList(Page page, Map<String,Object> paramMap);
	/**
	 * 新增元对象
	 * @param obj
	 * @return
	 */
	public MetaGenObj save(MetaGenObj obj);
	/**
	 * 根据ID获取元对象实例
	 * @param id
	 * @return
	 */
	public MetaGenObj findMetaGenObjById(Long id);
	/**
	 * 根据ID删除元对象
	 * @param ids
	 * @return
	 */
	public Boolean deleteMetaGenObjByIds(List<Long> ids);
	/**
	 * 根据ID获取元属性实例
	 * @param id
	 * @return
	 */
	public MetaGenAttr findMetaGenAttrById(Long id);
	/**
	 * 更新元对象实例
	 * @param entity
	 * @return
	 */
	public MetaGenObj update(MetaGenObj entity);
	/**
	 * 新增元属性
	 * @param entity
	 * @return
	 */
	public MetaGenAttr save(MetaGenAttr entity);
	/**
	 * 更新元属性实例
	 * @param entity
	 * @return
	 */
	public MetaGenAttr update(MetaGenAttr entity);
	/**
	 * 根据ID删除元属性
	 * @param ids
	 * @return
	 */
	public Boolean deleteMetaGenAttrByIds(List<Long> ids);

}
